﻿using System;
using System.Collections.Generic;

using System.Text;
using TomShane.Neoforce.Controls;
using RebEngine.Managers;

namespace RebellionII.GUI
{
    public class InputWindow
    {
        public Window MainWindow { set; get; }
        public Button btn1 { set; get; }
        public Button btn2 { set; get; }
        public Label lbl1;
        public TextBox txtBox { set; get; }

        public InputWindow(string message, string sBtn1, string sBtn2)
        {
            MainWindow = new Window(InputManager.Manager);
            MainWindow.Init();
            MainWindow.Center();
            MainWindow.Height = 200;
            MainWindow.Width = 400;
            InputManager.Manager.Add(MainWindow);

            btn1 = new Button(InputManager.Manager);
            btn1.Init();
            btn1.Top = 110;
            btn1.Left = 105;
            btn1.Width = 100;
            btn1.Height = 30;
            btn1.Text = sBtn1;
            MainWindow.Add(btn1);

            btn2 = new Button(InputManager.Manager);
            btn2.Init();
            btn2.Top = 110;
            btn2.Left = 245;
            btn2.Width = 100;
            btn2.Height = 30;
            btn2.Text = sBtn2;
            MainWindow.Add(btn2);

            lbl1 = new Label(InputManager.Manager);
            lbl1.Top = 15;
            lbl1.Left = 10;
            lbl1.Width = 150;
            lbl1.Height = 30;
            lbl1.Text = message;
            MainWindow.Add(lbl1);

            txtBox = new TextBox(InputManager.Manager);
            txtBox.Init();
            txtBox.Top = 15;
            txtBox.Left = 170;
            txtBox.Width = 120;
            txtBox.Height = 30;
            MainWindow.Add(txtBox);


        }
    }
}
